﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="SosaAnalysisModule.ReplayEnviroment"
        Title="ReplayEnviroment" Height="600" Width="1024"
        x:Name="window" KeyDown="keyboardDown" SizeChanged="winResize">
    <Grid Name="mainGrid" Height="574" VerticalAlignment="Top" Margin="0,0,-6.4,-2">
        <Border Name="bord" MouseMove="rotateCamera" MouseWheel="zoomBoard" Background="Black" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="496" Margin="10,10,0,0" VerticalAlignment="Top" Width="804">
            <Viewport3D x:Name="mainViewport" ClipToBounds="True" Margin="0.2,0.2,-1.2,0.2">
                <Viewport3D.Camera>
                    <PerspectiveCamera 
						FarPlaneDistance="200"
						LookDirection="-12,-3,0"
						UpDirection="0,1,0"
						NearPlaneDistance="1" 
						Position="5,8,-12" 
						FieldOfView="70" />
                </Viewport3D.Camera>
                <Viewport3D.Children>
                    <ModelVisual3D>
                        <ModelVisual3D.Content>
                            <Model3DGroup>
                                <DirectionalLight Color="White">
                                    <DirectionalLight.Transform>
                                        <Transform3DGroup>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
                                            <RotateTransform3D d:EulerAngles="179.384,-47.602,180.016">
                                                <RotateTransform3D.Rotation>
                                                    <AxisAngleRotation3D Axis="0.002,1,0.005" Angle="227.601"/>
                                                </RotateTransform3D.Rotation>
                                            </RotateTransform3D>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <TranslateTransform3D OffsetZ="-22.639" OffsetX="-17.8" OffsetY="5.129"/>
                                        </Transform3DGroup>
                                    </DirectionalLight.Transform>
                                </DirectionalLight>
                                <DirectionalLight Color="Gray" Direction="1,1,1">
                                    <DirectionalLight.Transform>
                                        <Transform3DGroup>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
                                            <RotateTransform3D d:EulerAngles="270.407,-43.477,163.434">
                                                <RotateTransform3D.Rotation>
                                                    <AxisAngleRotation3D Axis="-0.177,0.733,-0.657" Angle="221.366"/>
                                                </RotateTransform3D.Rotation>
                                            </RotateTransform3D>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <TranslateTransform3D OffsetY="-8.816" OffsetZ="-11.399" OffsetX="-9.424"/>
                                        </Transform3DGroup>
                                    </DirectionalLight.Transform>
                                </DirectionalLight>
                                <DirectionalLight Color="White">
                                    <DirectionalLight.Transform>
                                        <Transform3DGroup>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
                                            <RotateTransform3D d:EulerAngles="-3.612,-34.63,6.373">
                                                <RotateTransform3D.Rotation>
                                                    <AxisAngleRotation3D Axis="-0.045,-0.988,0.145" Angle="35.176"/>
                                                </RotateTransform3D.Rotation>
                                            </RotateTransform3D>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <TranslateTransform3D OffsetZ="-5.381" OffsetX="-12.394" OffsetY="6.289"/>
                                        </Transform3DGroup>
                                    </DirectionalLight.Transform>
                                </DirectionalLight>
                                <DirectionalLight Color="White" Direction="1,1,1">
                                    <DirectionalLight.Transform>
                                        <Transform3DGroup>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <ScaleTransform3D ScaleZ="1" ScaleY="1" ScaleX="1"/>
                                            <RotateTransform3D d:EulerAngles="-49.224,-5.29,-161.965">
                                                <RotateTransform3D.Rotation>
                                                    <AxisAngleRotation3D Axis="-0.107,0.407,-0.907" Angle="165.828"/>
                                                </RotateTransform3D.Rotation>
                                            </RotateTransform3D>
                                            <TranslateTransform3D OffsetZ="0" OffsetX="0" OffsetY="0"/>
                                            <TranslateTransform3D OffsetZ="-11.34" OffsetX="-11.015" OffsetY="5.916"/>
                                        </Transform3DGroup>
                                    </DirectionalLight.Transform>
                                </DirectionalLight>
                            </Model3DGroup>
                        </ModelVisual3D.Content>
                    </ModelVisual3D>
                </Viewport3D.Children>
            </Viewport3D>
        </Border>
        
        <Grid Name="buttonGrid" HorizontalAlignment="Left" Height="53" Margin="10,511,0,0" VerticalAlignment="Top" Width="1004">
            <Button Name="resButton" Content="Reset Camera" HorizontalAlignment="Left" Margin="810,10,0,0" VerticalAlignment="Top" Width="175" Height="33" Click="resetCamera"/>
            <Button Name="firstButton" Content="First step" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="175" Height="33" Click="firstBoardStep"/>
            <Button Name="prevButton" Content="Previous step" HorizontalAlignment="Left" Margin="190,10,0,0" VerticalAlignment="Top" Width="175" Height="33" Click="previousBoardStep"/>
            <Button Name="nextButton" Content="Next step" HorizontalAlignment="Left" Margin="370,10,0,0" VerticalAlignment="Top" Width="175" Height="33" Click="nextBoardStep"/>
            <Button Name="lastButton" Content="Last step" HorizontalAlignment="Left" Margin="550,10,0,0" VerticalAlignment="Top" Width="175" Height="33" Click="lastBoardStep"/>
        </Grid>
        <ListBox Name="infoBox" HorizontalAlignment="Left" Height="496" Margin="819,10,0,0" VerticalAlignment="Top" Width="185" FontSize="10"/>
   
        </Grid>
</Window>
